class CommonAddressItem {
  int? id;
  int? userId;
  String? consignee;
  String? mobile;
  int? province;
  String? provinceStr;
  int? city;
  String? cityStr;
  int? district;
  String? districtStr;
  int? isDefault;
  String? address;

  CommonAddressItem(
      {this.id,
      this.userId,
      this.consignee,
      this.mobile,
      this.province,
      this.provinceStr,
      this.city,
      this.cityStr,
      this.district,
      this.districtStr,
      this.isDefault,
      this.address});

  CommonAddressItem.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    consignee = json['consignee'];
    mobile = json['mobile'];
    province = json['province'];
    provinceStr = json['province_str'];
    city = json['city'];
    cityStr = json['city_str'];
    district = json['district'];
    districtStr = json['district_str'];
    isDefault = json['is_default'];
    address = json['address'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['consignee'] = this.consignee;
    data['mobile'] = this.mobile;
    data['province'] = this.province;
    data['province_str'] = this.provinceStr;
    data['city'] = this.city;
    data['city_str'] = this.cityStr;
    data['district'] = this.district;
    data['district_str'] = this.districtStr;
    data['is_default'] = this.isDefault;
    data['address'] = this.address;
    return data;
  }
}